﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HRM.DAL.DAO;

namespace HRM.UI.HRManagerUI.Configuration
{
    public partial class AddCompanyName : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {


        }
        protected void SaveCompany(object o, EventArgs e)
        {
            Company company = new Company();
            company.Name = txtCompanyName.Value;
            company.Address = txtCompanyAddress.Value;
            if (company.SaveCompany(company))
            {
                msgLabel.Text = "Comapny Saved Successfully";
            }
        }
    }
}